package com.rest;

import java.util.List;

import javax.ws.rs.Consumes;
import javax.ws.rs.DELETE;
import javax.ws.rs.GET;
import javax.ws.rs.POST;
import javax.ws.rs.Path;
import javax.ws.rs.PathParam;
import javax.ws.rs.Produces;
import javax.ws.rs.core.MediaType;

import com.api.model.ApiEnvironment;

@Path("/environments")
public interface EnvironmentsService {

	@GET
	@Path("/")
	@Produces(MediaType.APPLICATION_JSON)
	List<ApiEnvironment> getEnvironments();

	@POST
	@Path("/")
	@Consumes(MediaType.APPLICATION_JSON)
	String newOrEditEnvironment(ApiEnvironment environment);

	@DELETE
	@Path("/{envName}")
	String deleteEnvironment(@PathParam("envName") String environmentName);
}
